bugfix draw function for modules#344
bugfix draw function for modules#344MaximilianSoerenPollak merged 5 commits intoeclipse-score:mainfrom
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run //src:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
| # includes_back could deliver multiple needs; onlyreturn Modules | ||
| parents = need.get("includes_back", []) | ||
| if isinstance(parents, str): | ||
| parents = [parents] |
There was a problem hiding this comment.
Will this not automatically be a list according to sphinx_needs?
So would this then make it a double list? [[parents]] if 'parents` itself already is a list?
Is this the wanted behaviour?
There was a problem hiding this comment.
Yes, this is unnecessary.
There was a problem hiding this comment.
Fixed and add warning.
MaximilianSoerenPollak
left a comment
There was a problem hiding this comment.
Seems okay from my side.
|
|
||
| if len(module) > 1: | ||
| logger.warning( | ||
| f"{component}: included in multiple modules: {module}. Returning first." |
There was a problem hiding this comment.
Can be fixed in future PR.
Is it somewhere documented why only the first one is returned?
Or what the logic behind it is?
There was a problem hiding this comment.
This is the implicit logic, that a component belongs only to one module. Module is something like a bazel module or a package. And the component should only be in one. Sure, it could be used or integrated in more then one, but the real implementation should only be in one. I'm not sure if there are any circumstances (base libraries ???) for an exception from this rule, therefore I give only the warning. But in general it is only one. If we want to modify the draw function to show also multiple modules, then I guess more have to be changed. But will discuss this with the colleagues.
📌 Description
Fix draw function for module in case multiple links are on module.
🚨 Impact Analysis
✅ Checklist